package com.zhao.abstractFactory.factory.impl;

import com.zhao.abstractFactory.factory.AnimalFactory;
import com.zhao.abstractFactory.pojo.Animal;
import com.zhao.abstractFactory.pojo.impl.Eagle;

public class SkyAnimal extends AnimalFactory {
    @Override
    public Animal createAnimal(String name) {
        if (name.equalsIgnoreCase("eagle")) {
            return new Eagle();
        }
        return null;
    }
}
